<?php
$tempEmailList = [
    '376927050@qq.com',
    '376927050@qq.com',
    '376927050@qq.com',
    '376927050@qq.com',
    '376927050@qq.com',
    '376927050@qq.com',
    '376927050@qq.com'
];

function sendMail($email){
    sleep(2);
    //echo $email . '发送成功';
}

foreach($tempEmailList as $email){
    sendMail($email);
}
header('content-type:application/json;charset=utf-8');
echo json_encode(['code'=>1,'message'=>'success']);